package com.wpj.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_goods")
public class Goods implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String  gname;
    private String gdesc;
    private BigDecimal gprice;
    private String gpic; // 图片路径
    private Integer gstock; // 库存
    private Integer gtype; // 商品类型
    private Integer gstate; // 状态

}
